﻿using System;
using Assist;
using Autodesk.Revit.DB;

namespace ModelChecking.ModelValidation.AdjoinFireZone
{
	public class FindWinDoorVerInfo
	{
		public FindWinDoorVerInfo()
		{
			this.m_eleWinDoor = null;
			this.m_strViewPlanName = "";
			this.m_dEleTop = 0.0;
			this.m_dEleBottom = 0.0;
			this.m_dWide = 0.0;
			this.m_ptCenterBottom = XYZ.Zero;
		}

		public void GetPts(ref XYZ ptUpL, ref XYZ ptUpR, ref XYZ ptBottomL, ref XYZ ptBottomR)
		{
			double num = AssistFunc.mmToFeet(this.m_dEleTop - this.m_dEleBottom);
			XYZ xyz = this.m_ptCenterBottom + XYZ.BasisZ * num;
			double num2 = AssistFunc.mmToFeet(this.m_dWide);
			XYZ xyz2 = XYZ.BasisX * num2 / 2.0;
			ptUpL = xyz - xyz2;
			ptUpR = xyz + xyz2;
			ptBottomL = this.m_ptCenterBottom - xyz2;
			ptBottomR = this.m_ptCenterBottom + xyz2;
		}

		public string m_strViewPlanName;

		public FamilyInstance m_eleWinDoor;

		public double m_dEleTop;

		public double m_dEleBottom;

		public double m_dWide;

		public XYZ m_ptCenterBottom;
	}
}
